Configuring the Development Environment

Description

The first step in your preparation for developing web applications is to create one or more web project profiles. A web project profile defines where you will be publishing your files, both for testing and for deployment. You can have as many profiles as you need. By default you start with one profile named "Local Webroot". You need to create one more profile that defines the location of the publicly available website.

Creating a New Web Project Profile

If you were going to support two websites for local (LAN) and remote (WAN) users, you could create two more profiles named "LAN" and "WAN" or "Local" and "Remote". Any unique name is acceptable for a new profile. (You can see an example of a server profile at Publishing a Page to a Server.)

  1. Click Profiles (or Web > Project Settings... ) to display the Web Project Properties dialog box.

    images/Web_Project_Settings_button.gif
  2. Select "Local Webroot" in the Profile list.

  3. Select "" in the Profile list.

  4. In the General section of the properties list replace "" with "AlphaSports".

    images/WPT_New_Profile.gif
  5. Application variables are variables that are available to every page you create. Click '...' in the General > Application Variables field to display the Define Application Variables for Web Projects dialog box. Enter Author = "your_name" and click OK.

    images/WPT_Application_Variables.gif
  6. Click '...' in the General > Aliases field to display the Define Path and Connection Aliases for Web Projects dialog box. These are the types of aliases you will need to create. Note that the alias names and paths used below are for illustration. The values that you use for the alias names can be different. For example, you could replace all instances of PathAlias.ADB_Path with MyDatabasePath without a problem.

    • Alpha Anywhere

      You need to create this alias to point to the location of the published Alpha Anywhere database and its tables.

      PathAlias.ADB_Path = =a5.get_path()
    • Microsoft Access

      You need to create this alias to point to the location of the published Microsoft Access MDB file and its tables.

      PathAlias.MDB_Path = c:\somepath\
    • Microsoft Access, MySQL, and other databases that use connection strings

      This alias defines another connection string used to connect to the public copy of your database.

      ConnectionAlias = connection_string
    • Optional for all databases

      You need to create this alias to point to the location of the published additional files used by the application. For example, they could be images or PDF files.

      MyDataPath = c:\somepath\
  7. In the Publish to LAN > Webroot field enter the location of your server computer's webroot (i.e. \\myserver\A5Webroot ). This will be the live, public database.

  8. When you publish your web application using a profile other than the "Local Webroot" profile, you can also publish your data files. These files are the .DBF, .FPT, .CDX, .DDD, .DDM, .DDX, .SET, .SEM and .SEX files (in the case of native Alpha Anywhere tables), and .MDB files in the case of applications that read from Microsoft Access tables. Check the Publish Database Files > Public data files check box.

  9. Click the '...' icon in the Publish Database Files > Publish data files field to display the Select Database Files to Publish dialog box.

  10. Click Select All > OK.

  11. Click OK to finish configuring your new profile.

Creating a New Project

A project is a container that organizes all of the files (web components, HTML pages, images, etc.) that are part of one or more related web pages.

  1. Click New Project.

    images/New_Web_Project.gif
  2. Enter "AlphaSports" and click OK.

    images/WPT_New_Profile_2.gif

See Also